WPM
100
CPM
100
Errors
0
Time
15Min
Accuracy
100%
Start csharp code typing Practice. class in csharp, basic syntax, type conversion in csharp typing practice, try and catch typing practice.Click on the area below to start typing.
S.No. | Paragraph : Practice repeatedly whatever you would like most for full fifteen minutes | Lessions | click to Practice |
---|---|---|---|
1 | using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace CSharpTutorials { class Program { static void Main(string[] args) { string message = "Hello World!!"; Console.WriteLine(message); } } } | 1.1 | c# first program typing practice |
2 | public class MyClass{ public string myField = string.Empty; public MyClass() {} public void MyMethod(int parameter1, string parameter2){ Console.WriteLine("First Parameter {0}, second parameter {1}", parameter1, parameter2); } public int MyAutoImplementedProperty { get; set; } private int myPropertyVar; public int MyProperty{ get { return myPropertyVar; } set { myPropertyVar = value; } } } | 1.2 | c# program for class typing practice |
3 | using System; namespace RectangleApplication { class Rectangle { // member variables double length; double width; public void Acceptdetails() { length = 4.5; width = 3.5; } public double GetArea() { return length * width; } public void Display() { Console.WriteLine("Length: {0}", length); Console.WriteLine("Width: {0}", width); Console.WriteLine("Area: {0}", GetArea()); } } | 1.3 | C# some other basic syntax |
4 | using System; namespace TypeConversionApplication { class ExplicitConversion { static void Main(string[] args) { double d = 5673.74; int i; // cast double to int. i = (int)d; Console.WriteLine(i); Console.ReadKey(); } } } | 1.4 | c# type conversion typing practice |
5 | try { int age = 15; if (age >= 18) { cout << "Access granted - you are old enough."; } else { throw (age); } } catch (int myNum) { cout << "Access denied - You must be at least 18 years old.\n"; cout << "Age is: " << myNum; } | 1.5 | try and catch in c++ |